import request from '@/utils/request'

export function login(data) {
  console.log(data)
  return request({
    url: '/acc/doLogin',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/sysUser/info',
    method: 'get',
    // headers: {
    //   "satoken": "abc"
    // },
    // params: { token }
  })
}

export function logout() {
  return request({
    url: '/acc/logout',
    method: 'post'
  })
}


export function getMenus() {
  return request({
    url: 'sysMenu/list',
    method: 'get'
  })
}
